/**
 * @(#) DonationSubtractionMoneyVO.as
 *
 * @date		2013
 * @version		1.0
 * @author		beak kh
 * @description	
 * 				 
 */
package com.skt.common_hr.yearadjustment.model.vo
{
	import com.skt.common_hr.common.utilSilver.textSilver;
	import com.wcl.utils.DateUtil;
	
	
	[Bindable]
	public class HouseRepayVO
	{
		public var LSNAM:String='';		//대주 성명      
		public var LSREG:String='';		//주민등록번호
		
		   
		public var LSBEG:Date;			//대차계약시작일 
		public var LSEND:Date;			//대차계약종료일 
		public var BEGDA:Date;			//임대계약시작일 
		public var ENDDA:Date;			//임대계약종료일
		
//		public var LSBEG_F:String;			//대차계약시작일 
//		public var LSEND_F:String;			//대차계약종료일 
//		public var BEGDA_F:String;			//임대계약시작일 
//		public var ENDDA_F:String;			//임대계약종료일
//		
//		public var LSBEG_JSON:String;			//대차계약시작일 
//		public var LSEND_JSON:String;			//대차계약종료일 
//		public var BEGDA_JSON:String;			//임대계약시작일 
//		public var ENDDA_JSON:String;			//임대계약종료일 		 				 		 		
		
		
		
		
		public var INRAT:Number=0;		//이자율         
		public var PRICP:int=0;		//원리금         
		public var INTRS:Number=0;		//이자           
		public var LDNAM:String='';		//임대인성명     
		public var LDREG:String='';		//임대인주민번호 
		public var ADDRE:String='';		//임대계약 주소  
		public var TNDPT:Number=0;		//전세보증금     
		
		public var CHECK:Boolean; 		// ???????????
		
		//2014
		public var HOUTY:String='';		//주택유형코드
		public var HOUTX:String='';		//주택유형명
		public var FLRAR:String='';		//주택면적
				
		/**
		 * 주민등록번호   + -
		 */
 		public function get LSREG_F():String{
 			// 사업자
 			if(LSREG.length == 10) {
 				return textSilver.B_regnoFunc(LSREG);	
 			}
 			//민증번호
 			else {
 				return textSilver.regnoFunc(LSREG);
 			}
			
		}
		
		public function get LDREG_F():String{
 			// 사업자
 			if(LDREG.length == 10) {
 				return textSilver.B_regnoFunc(LDREG);	
 			}
 			//민증번호
 			else {
 				return textSilver.regnoFunc(LDREG);
 			}			
			
		}
		
		 
		public function get LSBEG_F():String{
			return DateUtil.toDefaultString(LSBEG);
		}

		public function get LSEND_F():String{
			return DateUtil.toDefaultString(LSEND);
		}
		
		public function get BEGDA_F():String{
			return DateUtil.toDefaultString(BEGDA);
		}
		
		public function get ENDDA_F():String{
			return DateUtil.toDefaultString(ENDDA);
		}		
		
		public function get LSBEG_F2():String{
			return DateUtil.toBasicString(LSBEG);
		}

		public function get LSEND_F2():String{
			return DateUtil.toBasicString(LSEND);
		}
		
		public function get BEGDA_F2():String{
			return DateUtil.toBasicString(BEGDA);
		}
		
		public function get ENDDA_F2():String{
			return DateUtil.toBasicString(ENDDA);
		}	
//		
//		public function clone():HouseRepayVO
//		{
//			var tmp:HouseRepayVO = new HouseRepayVO();
//			tmp.BEGDA = new Date(this.BEGDA);
//			tmp.ENDDA = new Date(this.ENDDA);
//			tmp.BETRG = this.BETRG;
//			
//			return tmp;
//		}
//		
//		public function get BEGDA_F():String{
//			return DateUtil.toDefaultString(BEGDA);
//		}	
//		public function set BEGDA_F(val:String):void{
//		}
//		public function get ENDDA_F():String{
//			return DateUtil.toDefaultString(ENDDA);
//		}	
//		public function set ENDDA_F(val:String):void{
//		}
//		
//		public function get BETRG_F():String{
//			return NumberUtil.NumberFormat(BETRG);
//		}
//		public function set BETRG_F(val:String):void{
//		}
//		
//		
	}
}